﻿<%@ Page Title="宝贝成长-首页" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="Baby.GrowUp.Web.Home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(function () {
            $('#Home').addClass('action');
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <section class="col-md-12 content home">
        <div class="title">
            <h2 class="wuyu">成长物语</h2>
        </div>
        <div class="col-lg-6 col-md-6 col-md-push-6 content-item background flexbox" style="min-height: 330px;">
            <ul>
                <asp:Repeater runat="server" ID="rList2">
                    <ItemTemplate>
                        <li>
                            <span class="Article"><a href="/Article.aspx?id=<%#Eval("A_Id") %>"><%#Eval("A_Title") %></a></span>
                            <span class="date"><%#Eval("A_CreateDate", "{0:yyyy-MM-dd}") %></span>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="col-lg-6 col-md-6 col-md-pull-6 content-item background flexbox" style="min-height: 330px;">
            <ul>
                <asp:Repeater runat="server" ID="rList1">
                    <ItemTemplate>
                        <li>
                            <span class="Article"><a href="/Article.aspx?id=<%#Eval("A_Id") %>"><%#Eval("A_Title") %></a></span>
                            <span class="date"><%#Eval("A_CreateDate", "{0:yyyy-MM-dd}") %></span>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="title more">
            <a href="Monogatari.aspx" target="_blank">More</a>
        </div>
    </section>
    <section class="col-md-12 content padding" id="home">
        <div class="col-lg-6 col-md-6 content-item">
            <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                <ol class="carousel-indicators">
                    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                </ol>
                <div class="carousel-inner" role="listbox">
                    <asp:Repeater runat="server" ID="rPhotos">
                        <ItemTemplate>
                            <div class="item <%#(int)Eval("P_Index") == 1 ? "active" : "" %>">
                                <img src="/upload/<%#Eval("P_Path") %>" />
                                <div class="carousel-caption">
                                    <h3><%#Eval("P_Title") %></h3>
                                    <p><%#Eval("P_Detail") %></p>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                    <span class="sr-only">Previous</span>
                </a>
                <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                    <span class="sr-only">Next</span>
                </a>
            </div>
        </div>
        <div class="col-lg-6 col-md-6 content-item content-item-1 background">
            <h2 class="main-title text-center dark-blue-text">我的成长照片</h2>
        </div>
    </section>
</asp:Content>
